﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace Master
{
    /**********************
     * CAR LEFT MAP EVENT *
     **********************/
    public delegate void CarLeftMapEventHandler(object sender, CarLeftMapEventArgs e);

    public class CarLeftMapEventArgs : RoutedEventArgs
    {        
        public CarLeftMapEventArgs(RoutedEvent routedEvent, object source, Side side)
            : base(routedEvent, source)
        {
            this.LeftMapOnSide = side;
        }

        public Side LeftMapOnSide { get; set; }
    }

    /*******************************
     * TRAFFIC LIGHT CHANGED EVENT *
     *******************************/
    public delegate void TrafficLightChangedEventHandler(object sender, TrafficLightChangedEventArgs e);

    public class TrafficLightChangedEventArgs : RoutedEventArgs
    {
        public TrafficLightChangedEventArgs(RoutedEvent routedEvent, object source, TrafficLightStatus status)
        {
            this.Status = status;
        }

        public TrafficLightStatus Status { get; set; }
    }
}
